#pragma once
#include "hxlbmpfile.h"
#include "BaseFunc.h"
#include "LZW.h"

// 计算LZW平均码长
void LZW_bpp(HXLBMPFILE &src, const vector<bitset<16>> &encode_result);

// LZW 编码
bool LZWEncode(HXLBMPFILE &src, const char *cFilename);

// LZW解码
bool LZWDecode(HXLBMPFILE &des, const char *cFilename);